package ${basepackage}.framework.model;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "auditlog")
/**
 * @author Xi Wei
 * @version 1.0
 * @since 1.0
 */
 public class AuditLog implements Serializable{
	
	 private Long auditLogId;
	    private String action;
	    private String detail;
	    private Timestamp createdDate;
	    private long entityId;
	    private String entityName;

	    public AuditLog() {
	    }

	    public AuditLog(String action, String detail, Timestamp createdDate,
	            long entityId, String entityName) {
	        this.action = action;
	        this.detail = detail;
	        this.createdDate = createdDate;
	        this.entityId = entityId;
	        this.entityName = entityName;
	    }

	    @Id
	    @GeneratedValue(strategy = GenerationType.IDENTITY)
	    @Column(name = "AUDIT_LOG_ID", unique = true, nullable = false)
		public Long getAuditLogId() {
			return auditLogId;
		}

		public void setAuditLogId(Long auditLogId) {
			this.auditLogId = auditLogId;
		}

		@Column(name = "ACTION",nullable = false)
		public String getAction() {
			return action;
		}

		public void setAction(String action) {
			this.action = action;
		}

		@Column(name = "DETAIL",nullable = false)
		public String getDetail() {
			return detail;
		}

		public void setDetail(String detail) {
			this.detail = detail;
		}

		@Column(name = "Created_Date", nullable = false)
		public Timestamp getCreatedDate() {
			return createdDate;
		}

		public void setCreatedDate(Timestamp createdDate) {
			this.createdDate = createdDate;
		}

		@Column(name = "ENTITY_ID", nullable = false)
		public long getEntityId() {
			return entityId;
		}

		public void setEntityId(long entityId) {
			this.entityId = entityId;
		}

		@Column(name = "ENTITY_NAME",nullable = false)
		public String getEntityName() {
			return entityName;
		}

		public void setEntityName(String entityName) {
			this.entityName = entityName;
		}

	    
	    
	    

}
